Eu tento adicionar moves nos pokes que nao tem moves no lib spell attacks, da erro, e nao faco nada de errado, por exemplo.
Eu copio o aerodactyl, coloco como Mega Aerodactyl e tiro o ultimo CD q é o mega item.
Inicio e da erro :S
Por Taiger, 05 de jun. de 2016 em OTServer Alternativo (ATS)
info
Grupo: Campones
Registrado: 07/05/09
Posts: 67
Reputação: +9
Char no Tibia: Christopher Prado

Eu tento adicionar moves nos pokes que nao tem moves no lib spell attacks, da erro, e nao faco nada de errado, por exemplo.
Eu copio o aerodactyl, coloco como Mega Aerodactyl e tiro o ultimo CD q é o mega item.
Inicio e da erro :S
info
Grupo: Campones
Registrado: 15/06/16
Posts: 15
Reputação: +2
Gênero: Masculino
Char no Tibia: Ykzaiar

@planetc Teria como mandar algo q ajude a identificar o erro ?
info
Grupo: Campones
Registrado: 07/05/09
Posts: 67
Reputação: +9
Char no Tibia: Christopher Prado

["Aerodactyl"] = {move1 = {name = "Roar", level = 110, cd = 20, dist = 1, target = 0, f = 0, t = "normal"},
move2 = {name = "Super Sonic", level = 100, cd = 20, dist = 1, target = 1, f = 0, t = "normal"},
move3 = {name = "Bite", level = 100, cd = 10, dist = 1, target = 1, f = 50, t = "dark"},
move4 = {name = "Crunch", level = 100, cd = 10, dist = 1, target = 0, f = 65, t = "dark"},
move5 = {name = "Rock Throw", level = 100, cd = 15, dist = 10, target = 1, f = 55, t = "rock"},
move6 = {name = "Rock Slide", level = 100, cd = 20, dist = 10, target = 1, f = 35, t = "rock"},
move7 = {name = "Air Cutter", level = 105, cd = 40, dist = 1, target = 0, f = 70, t = "flying"},
move8 = {name = "Wing Attack", level = 100, cd = 35, dist = 1, target = 0, f = 75, t = "flying"},
move9 = {name = "Falling Rocks", level = 105, cd = 50, dist = 1, target = 0, f = 120, t = "rock"},
move10 = {name = "Hyper Beam", level = 110, cd = 30, dist = 1, target = 0, f = 120, t = "normal"},
move11 = {name = "Ancient Power", level = 115, cd = 40, dist = 1, target = 0, f = 100, t = "rock"},
move12 = {name = "Mega - Aerodactyl", level = 0, cd = 0, dist = 1, target = 0, f = 0, t = "rock", mega = 1},
},
EU COPIO ISSO E FACO ASSIM:
["Mega Aerodactyl"] = {move1 = {name = "Roar", level = 110, cd = 20, dist = 1, target = 0, f = 0, t = "normal"},
move2 = {name = "Super Sonic", level = 100, cd = 20, dist = 1, target = 1, f = 0, t = "normal"},
move3 = {name = "Bite", level = 100, cd = 10, dist = 1, target = 1, f = 50, t = "dark"},
move4 = {name = "Crunch", level = 100, cd = 10, dist = 1, target = 0, f = 65, t = "dark"},
move5 = {name = "Rock Throw", level = 100, cd = 15, dist = 10, target = 1, f = 55, t = "rock"},
move6 = {name = "Rock Slide", level = 100, cd = 20, dist = 10, target = 1, f = 35, t = "rock"},
move7 = {name = "Air Cutter", level = 105, cd = 40, dist = 1, target = 0, f = 70, t = "flying"},
move8 = {name = "Wing Attack", level = 100, cd = 35, dist = 1, target = 0, f = 75, t = "flying"},
move9 = {name = "Falling Rocks", level = 105, cd = 50, dist = 1, target = 0, f = 120, t = "rock"},
move10 = {name = "Hyper Beam", level = 110, cd = 30, dist = 1, target = 0, f = 120, t = "normal"},
move11 = {name = "Ancient Power", level = 115, cd = 40, dist = 1, target = 0, f = 100, t = "rock"},
},
A partir do momento que faço isso, o distro buga tudo mano :S sendo que adicionei apenas moves em um pokemon
8 minutos atrás, Paladadin disse:
@planetc Teria como mandar algo q ajude a identificar o erro ?
Editado Junho 16 por planetc
info
Grupo: Campones
Registrado: 15/06/16
Posts: 15
Reputação: +2
Gênero: Masculino
Char no Tibia: Ykzaiar

@planetc Tenta salvar o pokespells.lua em ANSI, caso n funcione mande uma foto ou copie o bug da distro.
info
Grupo: Artesão
Registrado: 15/07/08
Posts: 113
Reputação: +25
Gênero: Masculino
Char no Tibia: Muuleek

1 hora atrás, Durant disse:@Josegvb kkkk pode pá, esse final de semana eu arrumo melhor e ver se faço o Double Cannon do magmortar e os passivos do buzz e electrivire
NICE demais DURANT
Vou nem mexer mais nas spells, kkkk, 2x REP pra tu
27 minutos atrás, RicardoRoX disse:NICE demais DURANT
Vou nem mexer mais nas spells, kkkk, 2x REP pra tu
meu amigo qual e remere que vc tem? no meu nao funca!
info
Grupo: Administrador
Registrado: 08/07/05
Posts: 5.8k
Reputação: +1.4k
Gênero: Outro

11 minutos atrás, luisz25 disse:meu amigo qual e remere que vc tem? no meu nao funca!
Baixe este amigão:
Bom galera, tenho 2 erros aqui to atualizando conforme o que esta postando aqui.
1


info
Grupo: Artesão
Registrado: 15/07/08
Posts: 113
Reputação: +25
Gênero: Masculino
Char no Tibia: Muuleek

porque as veces os pokes ficam assim?

info
Grupo: Campones
Registrado: 15/06/16
Posts: 15
Reputação: +2
Gênero: Masculino
Char no Tibia: Ykzaiar

@RicardoRoX Andei dando uma olhada no resto dos pokemons q estao com o msm bug que o lucario e riolu e resultou nessa lista. Aron, groudon, kyogre, medichan, nicada, nuzleaf, rayquaza, rhyperion (rhyperior kkk), seedot ( q ta com sprite errada tbm), tangrowth, Torkal (torkoal). Caso vc n poste um tutorial como resolver esse bug facilite pelo menos em qual poke vc tem que mecher.
info
Grupo: Visconde
Registrado: 07/01/12
Posts: 495
Reputação: +48
Gênero: Masculino
Char no Tibia: Nem Tenho

Bom galera, ainda estou começando a aprender a mexer com scripts, então, esse ficou meio bagunçado e longo, creio que se eu não encontrasse um problema que não consegui resolver, ficaria com muito menos linhas de codigos, enfim, o problema que achei foi que não consegui fazer o script identificar o atributo do mega, sendo assim tive que adicionar todos os megas manualmente no script.
Como prometido, está ai o script de remover a mega stone, se ajudei rep+ ![]()
em data/actions/scripts/basic, em heldItems.lua, procure por:
doSendMsg(cid, msg)
e embaixo, adicione:
doItemSetAttribute(item2.uid, "ehMega", b.megaID)
Pronto, nesse script, só isso.
agora crie um arquivo em data/actions/scripts com o nome de remover.lua, e adicione isso:
--SCRIPT FEITO POR: POKEMONULTIMATETWO ;P--------function onUse(cid, item, frompos, item2, topos)local nick = getPokeballName(item2.uid)local megas = {Alakazite = {15131, 1}, -- id da mega stone, quantidade que vai ser adicionada ao player.CharizarditeX = {15134, 1},CharizarditeY = {15135, 1},Blastoisinite = {15133, 1},Gengarite = {15136, 1},Pidgeotile = {15791, 1},Venusaurite = {15793, 1},Kangaskhanite = {15783, 1},Aerodactylite = {15786, 1},Tyranitarite = {15781, 1},Ampharosite = {15794, 1},Scizorite = {15784, 1},Aggronite = {15780, 1},Blazikenite = {15792, 1},Mawlite = {15782, 1},Gardevoirite = {15785, 1},Absolite = {15787, 1},Lucarionite = {15788, 1},Sceptilite = {15789, 1},Swampertile = {15790, 1},msgDone = "Sua mega stone foi removida com sucesso.", -- mensagem que vai mandar ao remover a mega stonemsgFail = "Esse pokemon nao segura nenhuma mega stone." -- mensagem que vai mandar se nao tiver a mega stone}if #getCreatureSummons(cid) > 0 or isRiderOrFlyOrSurf(cid) then doSendMsg(cid, "Retorne seu pokemon para remover a mega Stone.") return trueendif not isPokeball(item2.itemid) then return doPlayerSendCancel(cid, MSG_NAO_E_POSSIVEL)endif nick == "Aggron" and getItemAttribute(item2.uid, "ehMega") thendoSendMsg(cid, megas.msgDone)doItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Aggronite[1], megas.Aggronite[2])elseif nick == "Alakazam" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Alakazite[1], megas.Alakazite[2])elseif nick == "Charizard" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem", megaID)doPlayerAddItem(cid, megas.CharizarditeX[1], megas.CharizarditeX[2])elseif nick == "Charizard" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem", megaID)doPlayerAddItem(cid, megas.CharizarditeY[1], megas.CharizarditeY[2])elseif nick == "Blastoise" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Blastoisinite[1], megas.Blastoisinite[2])elseif nick == "Gengar" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Gengarite[1], megas.Gengarite[2])elseif nick == "Pidgeot" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Pidgeotile[1], megas.Pidgeotile[2])elseif nick == "Venusaur" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Venusaurite[1], megas.Venusaurite[2])elseif nick == "Kangaskhan" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Kangaskhanite[1], megas.Kangaskhanite[2])elseif nick == "Aerodactyl" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Aerodactylite[1], megas.Aerodactylite[2])elseif nick == "Tyranitar" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Tyranitarite[1], megas.Tyranitarite[2])elseif nick == "Ampharos" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Ampharosite[1], megas.Ampharosite[2])elseif nick == "Scizor" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Scizorite[1], megas.Scizorite[2])elseif nick == "Blaziken" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Blaziken[1], megas.Blaziken[2])elseif nick == "Mawile" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Mawlite[1], megas.Mawlite[2])elseif nick == "Gardevoir" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Gardevoirite[1], megas.Gardevoirite[2])elseif nick == "Absol" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Absolite[1], megas.Absolite[2])elseif nick == "Lucario" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Lucarionite[1], megas.Lucarionite[2])elseif nick == "Sceptile" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Sceptilite[1], megas.Sceptile[2])elseif nick == "Swampert" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Swampertile[1], megas.Swampertile[2])elsedoSendMsg(cid, megas.msgFail)return trueendend-- TUTORIAL DE COMO ADICIONAR NOVOS MEGAS:--ADICIONE COMO NO EXEMPLO, DEPOIS DO ELSEIF DO WAMPERT:--elseif nick == "Nome do Pokemon" and getItemAttribute(item2.uid, "ehMega") then--doItemEraseAttribute(item2.uid, "ehMega")--doItemEraseAttribute(item2.uid, "yHeldItem")--doPlayerAddItem(cid, megas.Nome da Mega Stone[1], megas.Nome da Mega Stone[2])--DEPOIS LA EM CIMA NA TABELA MEGAS = {} VOCÊS ADICIONAM O NOME DA MEGA STONE, IGUAL VCS COLOCARAM EMBAIXO, EXEMPLO FEITO:(SEMPRE ADICIONANDO VIRGULA NO PENULTIMO ITEM DA TABELA)-- local megas = {-- msgFail = "msg",-- Sableyite = {17480, 1}--}--elseif nick == "Sableye" and getItemAttribute(item2.uid, "ehMega") then--doItemEraseAttribute(item2.uid, "ehMega")--doItemEraseAttribute(item2.uid, "yHeldItem")--doPlayerAddItem(cid, megas.Sableyite[1], megas.Sableyite[2])
a tag do actions xml:
<action itemid="id do seu item" event="script" value="remover.lua" allowfaruse="1"/>
Bom, é isso, o script ficou grande, mas como prometido ta ai, já está configurado com os megas e ids atuais, não precisa mudar nada, porem, se quiserem adicionar novos megas tem um tutorial no fim do script, como já disse ficou grande pois não consegui identificar automaticamente o atributo do mega na ball, então tive que configurar manualmente.
Se algum scripter quiser e se habilitar a melhorar o código e se possível me disser como fez, e também ajudar o pessoal, eu também fico agradecido...
Bom, é isso...
Editado Junho 17 por Pokemonultimatetwo
erros na distro:
09:08 Uptime: 32 hours and 25 minutes.
[17/06/2016 00:39:17] [Error - Action Interface]
[17/06/2016 00:39:17] In a timer event called from:
[17/06/2016 00:39:17] data/actions/scripts/catch.lua:onUse
[17/06/2016 00:39:17] Description:
[17/06/2016 00:39:17] data/lib/catch system.lua:195: attempt to index a nil value
[17/06/2016 00:39:17] stack traceback:
[17/06/2016 00:39:17] data/lib/catch system.lua:195: in function <data/lib/catch system.lua:177>
[17/06/2016 08:02:49] [Error - CreatureScript Interface]
[17/06/2016 08:02:49] data/creaturescripts/scripts/player/pokeWalk.lua:onMove
[17/06/2016 08:02:49] Description:
[17/06/2016 08:02:49] data/lib/106-main functions.lua:416: attempt to index field '?' (a nil value)
[17/06/2016 08:02:49] stack traceback:
[17/06/2016 08:02:49] data/lib/106-main functions.lua:416: in function 'getPokemonOutfitToSkill'
[17/06/2016 08:02:49] data/lib/106-main functions.lua:1543: in function 'doUp'
[17/06/2016 08:02:49] data/creaturescripts/scripts/player/pokeWalk.lua:82: in function <data/creaturescripts/scripts/player/pokeWalk.lua:1>
[17/06/2016 08:54:21] [Error - CreatureScript Interface]
[17/06/2016 08:54:21] data/creaturescripts/scripts/player/pokeWalk.lua:onMove
[17/06/2016 08:54:21] Description:
[17/06/2016 08:54:21] data/creaturescripts/scripts/player/pokeWalk.lua:42: attempt to index a boolean value
[17/06/2016 08:54:21] stack traceback:
[17/06/2016 08:54:21] data/creaturescripts/scripts/player/pokeWalk.lua:42: in function <data/creaturescripts/scripts/player/pokeWalk.lua:1>
[17/06/2016 00:34:50] [Error - CreatureScript Interface]
[17/06/2016 00:34:50] In a timer event called from:
[17/06/2016 00:34:50] data/creaturescripts/scripts/player/statsChange.lua:onStatsChange
[17/06/2016 00:34:50] Description:
[17/06/2016 00:34:50] (luaDoAddCondition) Creature not found
09:08 Uptime: 32 hours and 25 minutes.
duvida:
no otclient como faz pra editar o mapa?

Editado Junho 17 por Josegvb
info
Grupo: Artesão
Registrado: 15/07/08
Posts: 113
Reputação: +25
Gênero: Masculino
Char no Tibia: Muuleek

1 hora atrás, Josegvb disse:erros na distro:
09:08 Uptime: 32 hours and 25 minutes.
[17/06/2016 00:39:17] [Error - Action Interface]
[17/06/2016 00:39:17] In a timer event called from:
[17/06/2016 00:39:17] data/actions/scripts/catch.lua:onUse
[17/06/2016 00:39:17] Description:
[17/06/2016 00:39:17] data/lib/catch system.lua:195: attempt to index a nil value
[17/06/2016 00:39:17] stack traceback:
[17/06/2016 00:39:17] data/lib/catch system.lua:195: in function <data/lib/catch system.lua:177>
[17/06/2016 08:02:49] [Error - CreatureScript Interface]
[17/06/2016 08:02:49] data/creaturescripts/scripts/player/pokeWalk.lua:onMove
[17/06/2016 08:02:49] Description:
[17/06/2016 08:02:49] data/lib/106-main functions.lua:416: attempt to index field '?' (a nil value)
[17/06/2016 08:02:49] stack traceback:
[17/06/2016 08:02:49] data/lib/106-main functions.lua:416: in function 'getPokemonOutfitToSkill'
[17/06/2016 08:02:49] data/lib/106-main functions.lua:1543: in function 'doUp'
[17/06/2016 08:02:49] data/creaturescripts/scripts/player/pokeWalk.lua:82: in function <data/creaturescripts/scripts/player/pokeWalk.lua:1>
[17/06/2016 08:54:21] [Error - CreatureScript Interface]
[17/06/2016 08:54:21] data/creaturescripts/scripts/player/pokeWalk.lua:onMove
[17/06/2016 08:54:21] Description:
[17/06/2016 08:54:21] data/creaturescripts/scripts/player/pokeWalk.lua:42: attempt to index a boolean value
[17/06/2016 08:54:21] stack traceback:
[17/06/2016 08:54:21] data/creaturescripts/scripts/player/pokeWalk.lua:42: in function <data/creaturescripts/scripts/player/pokeWalk.lua:1>
[17/06/2016 00:34:50] [Error - CreatureScript Interface]
[17/06/2016 00:34:50] In a timer event called from:
[17/06/2016 00:34:50] data/creaturescripts/scripts/player/statsChange.lua:onStatsChange
[17/06/2016 00:34:50] Description:
[17/06/2016 00:34:50] (luaDoAddCondition) Creature not found
09:08 Uptime: 32 hours and 25 minutes.
duvida:
no otclient como faz pra editar o mapa?
KKKKKKKKKKKKKKK
e essas tangela ai?
info
Grupo: Conde
Registrado: 13/10/13
Posts: 504
Reputação: +95
Gênero: Masculino
Você usou a base do geot com newtype do fearow? ficou bom só que precisa alterar os magic effect, o vortex esta puxando os poke?.
Editado Junho 16 por Jakson Souza